package com.naiterui.ehp.bs.cms.modules.agent.service;

import java.io.IOException;

import org.springframework.web.bind.annotation.RequestParam;

import com.naiterui.ehp.bs.cms.common.vo.PageParamsVO;
import com.naiterui.ehp.bs.cms.common.vo.PageVO;
import com.naiterui.ehp.bs.cms.modules.agent.vo.AreaStatisticsDetailVO;
import com.naiterui.ehp.bs.cms.modules.agent.vo.AreaStatisticsReportVO;
import com.naiterui.ehp.bs.cms.modules.agent.vo.AreaStatisticsVO;
import com.naiterui.ehp.bs.cms.modules.agent.vo.BusinessStatisticsVO;

/**
 * 业务报表
 * 
 * @author yangfuya
 * @since 2022/2/21
 */
public interface IBusinessReportService {
    /**
     * 全平台数据统计
     */
    BusinessStatisticsVO getStatistics(Long areaId);

    /**
     * 大区列表
     */
    PageVO<AreaStatisticsVO> areaList(PageParamsVO pageParamsVO);

    /**
     * 大区详情
     */
    AreaStatisticsDetailVO detail(@RequestParam Long areaId);

    /**
     * 大区/省区报表列表
     */
    PageVO<AreaStatisticsReportVO> list(PageParamsVO pageParamsVO, Long areaId, Integer type, Integer reportType,
        String reportDate);

    /**
     * 大区/省区导出
     */
    byte[] export(String areaIds, Integer type, Integer reportType, String reportDates) throws IOException;
}
